package cn.kgc.spring.basic;

/**
 * @author: mosin
 * @version: v1.0  2022/6/29
 */
public class UserMapperImpl implements UserMapper {
    @Override
    public User selectByUser(User user) {

        System.out.println("select *  from  user where username = "+user.getUsername()+"and password = "+user.getPassword());

        return user;
    }

    @Override
    public Integer addUser(User user) {

        System.out.println("insert into user (username,password)values("+user+")");

        return 1;
    }
}
